import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/comm/outsystem/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/comm/outsystem/',
    method: 'post',
    data: obj
  })
}

export function delObj(id) {
  return request({
    url: '/comm/outsystem/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/comm/outsystem',
    method: 'put',
    data: obj
  })
}

export function getOutSysList() {
  return request({
    url: '/comm/outsystem/outsys_list',
    method: 'get'
  })
}

export function ckeckCode(obj) {
  return request({
    url: '/comm/outsystem/checkCode',
    method: 'post',
    data: obj
  })
}